<template>
  <!-- <a-button type="primary" @click="showDrawer">Open</a-button> -->

  <a-drawer
    title="高级搜索"
    class="custom-class"
    root-class-name="root-class-name"
    placement="right"
    v-model:open="open"
    :maskClosable="true"
    @after-open-change="afterOpenChange"
  >
    <slot></slot>
  </a-drawer>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const open = ref<boolean>(false)

const afterOpenChange = (bool: boolean) => {
  console.log('open', bool)
}

const showDrawer = () => {
  open.value = true
}

defineExpose({
  showDrawer,
})
</script>
